import App from './App'
import store from './store'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
// 获取全局唯一的背景音频管理器[不支持H5]
// #ifndef H5
Vue.prototype.$musicPlay = uni.getBackgroundAudioManager()
// #endif
// #ifdef H5
Vue.prototype.$musicPlay = uni.createInnerAudioContext()
Vue.prototype.$musicPlay.autoplay = true
// #endif
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif